package com.itmeima.dao.impl;

import com.itmeima.dao.SingletonTemplate;
import com.itmeima.dao.UserDao;
import org.springframework.aop.target.SingletonTargetSource;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository("userDao")
public class UserDaolmpl implements UserDao {

    public void save(){
        System.out.println("UserDaolmpl save");
        JdbcTemplate jdbcTemplate = SingletonTemplate.getjdbcTemplate();
        for (int i=0; i<0; i++){
            jdbcTemplate.update("INSERT INTO USER(NAME, age) VALUES(?,?); ","test",11);
        }
    }
}
